
public abstract interface A {
    public abstract void function();
}
class B implements A{
    @Override
    public void function() {
        System.out.println("hhh");
    }
    public static void main(String[] args) {
       B b = new B();
       ((A)b).function();
    }
}